package com.syt.dome;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.syt.dome.mapper")
@ComponentScan(basePackages = {"com.syt"})// 通过swagger 访问有指定的访问路径  http://localhost:801/swagger-ui.html
@EnableDiscoveryClient// 服务注册
@EnableFeignClients(basePackages = "com.syt")// 服务调用
public class AppSytaction {
    public static void main(String[] args) {

        SpringApplication.run(AppSytaction.class, args);
    }
}
